package com.yinshan.calendar.bean;

import com.yinshan.calendar.utils.Utils;

import java.io.Serializable;
import java.util.Date;

/**
 * @author limh
 * @function 日历
 * @date 2019/3/11 11:22
 */
public class DayDesc implements Serializable {
    private static final long serialVersionUID = -4982623116065678862L;
    //是否选中
    private boolean check;
    //天
    private int day;
    //月
    private int month;
    //是否是当月
    private boolean thisMonth;
    //年
    private int year;

    private Date date;

    public DayDesc(boolean check, int day, int month, boolean thisMonth, int year) {
        this.check = check;
        this.day = day;
        this.month = month;
        this.thisMonth = thisMonth;
        this.year = year;
        this.date = Utils.getDate(this.year, this.month, this.day);
    }

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public boolean getThisMonth() {
        return thisMonth;
    }

    public void setThisMonth(boolean thisMonth) {
        this.thisMonth = thisMonth;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public Date getDate() {
        return Utils.getDate(this.year, this.month, this.day);
    }

    public void setDate(Date date) {
        this.date = Utils.getDate(this.year, this.month, this.day);
    }
}
